<?php

namespace app\controller;

use app\Request;

class Error
{
    public function __call($method, $args)
    {
        $res = [
            'code' => '3000',
            'msg' => '没有找到该控制器 【' . Request()->controller() . '】',
            'status' => 'error',
        ];
        return json($res, 400);
    }
}